package com.twu.biblioteca;

import java.io.PrintStream;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: thoughtworker
 * Date: 10/13/13
 * Time: 3:04 PM
 * To change this template use File | Settings | File Templates.
 */
public class PrintBooksMenu implements MenuOptions {

    private PrintStream printStream;
    private Map<String, Integer> bookList;

    public PrintBooksMenu(PrintStream printStream, Map<String, Integer> bookList) {
        this.printStream = printStream;
        this.bookList = bookList;
    }

    @Override
    public void execute() {
        printStream.println(bookList.toString());
    }
}
